{% extends "home/home.html" %}
{% load i18n %}

{% block head_title%}Blog Avicaz{% endblock %}

{% block stylesheet %}
<link rel="stylesheet" type="text/css" href="{{STATIC_URL}}css/article.css" media="screen"/>
{% endblock %}

{% block content %}
<div class="row content-blog">
    <div class="span8">
	    <div>
		{% for Post in posts %}
		    <img src="{{MEDIA_URL}}{{Post.image}}" alt="Image" height="372" width="700">
			    <h3><a href="{% url 'PostDetailView' Post.id %}">{{Post.title}}</a></h3>
				    <div class="post-detail">
					    <b>Posted:  </b> {{Post.publish_date}} &nbsp;
		<!-- 			by<a href="#">admin</a>&nbsp;&nbsp;&nbsp;  -->
		<!-- 			<b>Tags:</b>&nbsp; <a href="#">Standard</a>  -->
						&nbsp;&nbsp;&nbsp;
						<b>Comments:</b>&nbsp;<a href="#">{{Post.comments_count}}</a>	
					</div>
			<div class="text-blog">
			    <p> {{Post.body}}</p>
				<a href="{% url 'PostDetailView' Post.id %}" ><em>Read More</em></a>
				<h2> </h2>
			</div>
		{% endfor %}
		</div>
    </div>
</div>	
{% endblock %}